home *** CD-ROM | disk | FTP | other *** search
/ Family Forum 260 / SOMC Family Forum 260 - Disc 2.iso / somc / Beakman.dir / 00001_Script_Start Movie next >
Text File  |  1999-01-15  |  4KB  |  154 lines

  1.  
  2. on startMovie
  3.   
  4.   --* set the paths and exe for the setups
  5.   
  6.   global K1SETUP,K2SETUP,K3SETUP,K4SETUP
  7.   set K1SETUP to "C:\MOOKY3\start.exe"
  8.   set K2SETUP to "C:\MOOKY3\start.exe"
  9.   set K3SETUP to "C:\MOOKY3\start.exe"
  10.   set K4SETUP to "C:\MOOKY3\start.exe"
  11.   
  12.   
  13.   
  14.   --* set weblink URLs
  15.   
  16.   global LINK1,LINK2,LINK3,LINK4,LINK5,LINK6,LINK7,LINK8,LINK9,LINK10
  17.   set link1 to "http://www.screenit.com"
  18.   set link2 to "http://www.discovery.com"
  19.   set link3 to "http://www.disney.com"
  20.   set link4 to "http://www.nick.com"
  21.   set link5 to "http://www.dccomics.com"
  22.   set link6 to "http://www.nasa.gov"
  23.   set link7 to "http://www.whitehouse.gov"
  24.   set link8 to "http://www.starwars.com"
  25.   set link9 to "http://www.ctw.org"
  26.   set link10 to "http://www.4kids.com"
  27.   
  28.    --* This declares the variables for the finger cursor. *
  29.   
  30.   global FINGER, FINGERMASK
  31.   set FINGER to the number of member "Finger1" 
  32.   set FINGERMASK to the number of member "Finger2" 
  33.   
  34.   
  35.   glowClear()
  36.   
  37. end
  38.  
  39.  
  40.  
  41.  
  42. --* This handler hides/shows the glow images. eg: glow(5,TRUE) *
  43.  
  44. on glow WHICHSPRITE, TRUEORFALSE
  45.   set the visible of sprite WHICHSPRITE to TRUEORFALSE
  46. end glow
  47.  
  48. --* TURN OF ALL GLOWS ON START
  49. on glowClear
  50.   repeat with i = 27 to 30
  51.     glow(i)
  52.     glow(3,FALSE)
  53.     glow(4,FALSE)
  54.     end repeat
  55. end
  56.  
  57. -- Delays for x number of seconds
  58. on timedelay SECONDS 
  59.   startTimer
  60.   repeat while the timer < SECONDS * 60
  61.     nothing
  62.   end repeat    
  63. end
  64.  
  65. --* This handler switches the text color for a glow effect. eg.textglow("Hello",1)*
  66.  
  67. on textglow WHICHMEMBER, COLORNUMBER
  68.   set the foreColor of member WHICHMEMBER to COLORNUMBER  
  69. end textglow
  70.  
  71.  
  72. --* THIS HANDLER EXAMPLE OF DISABLEING HOTSPOTS WHEN RUNNING MIAW*
  73. --on mouseEnter
  74. --  if not count(the windowList) then
  75. --    doRollover(52)
  76. --  end if
  77. --end
  78. --
  79. --
  80. --on mouseLeave
  81. --  if not count(the windowList) then
  82. --    doRollout(52)
  83. --  end if
  84. --end
  85.  
  86.  
  87.  
  88. --* THIS HANDLER OPEN AND CENTERS A MOVIE IN A WINDOW *
  89.  
  90. on openMIAW MYWINDOW
  91.   set myRect=the rect of window MYWINDOW
  92.   set myStage=the rect of the Stage
  93.   set myWidth=(getAt(myRect,3)-getAt(myRect,1))
  94.   set myHeight=(getAt(myRect,4)-getAt(myRect,2))
  95.   set myLocH=((getAt(myStage,3)+getAt(myStage,1))/2)-(myWidth/2)
  96.   set myLocV=((getAt(myStage,2)+getAt(myStage,4))/2)-(myHeight/2)
  97.   set myNewRect=rect(myLocH,myLocV,(myLocH+myWidth),(myLocV+myHeight))
  98.   set the rect of window MYWINDOW=myNewRect
  99.   set the windowType of window MYWINDOW to 2
  100.   open window MYWINDOW
  101. end openMIAW
  102.  
  103.  
  104. --* THESE HANDLERS TURN ON A GLOW, TURN POINTER A HAND AND PLAYS A SOUND *
  105.  
  106. on doRollover numsprite
  107.   glow(numsprite,TRUE)
  108.   global finger,fingermask
  109.   cursor[finger,fingermask]
  110.   updatestage
  111.   puppetsound 1, "rollsound"
  112.   --  repeat while soundbusy(1)
  113.   --  end repeat
  114. end
  115.  
  116.  
  117. on doRollover2 numsprite
  118.   glow(numsprite,TRUE)
  119.   global finger,fingermask
  120.   cursor[finger,fingermask]
  121.   updatestage
  122.   puppetsound 1, "rollsound2"
  123.   --  repeat while soundbusy(1)
  124.   --  end repeat
  125. end
  126.  
  127. on doRollover3 numsprite
  128.   glow(numsprite,TRUE)
  129.   global finger,fingermask
  130.   cursor[finger,fingermask]
  131.   updatestage
  132.   --  puppetsound 1, "rollsound2"
  133.   --  repeat while soundbusy(1)
  134.   --  end repeat
  135. end
  136.  
  137. --* THIS HANDLER TURNS THE SPRITE PASSED TO IT TO INVISIBLE AND RESETS THE CURSOR
  138. on doRollout numsprite
  139.   glow(numsprite,FALSE)
  140.   cursor 0
  141. end
  142.  
  143. --* PLAYS A CLICK SOUND
  144.  
  145. on doClick
  146.   puppetsound 1,"clicksound"
  147.   updateStage
  148. end
  149.  
  150.  
  151.  
  152.  
  153.  
  154.